﻿#ifndef WIDGET_H
#define WIDGET_H

#include <QWidget>
#include <QRemoteObjectHost>
#include "rep_MyRPC_source.h"

class Widget : public QWidget
{
    Q_OBJECT

public:
    Widget(QWidget *parent = nullptr);
    ~Widget();

    MyRPCSimpleSource *m_rpc = nullptr;
    QRemoteObjectHost *m_host = nullptr;

public slots:
    void onMessageA(const QString &msg);
    void onMessageB(const QString &msg);

    virtual void timerEvent(QTimerEvent *ev);
};
#endif // WIDGET_H
